package com.cwj.mansysback.servlet.impl;

import com.cwj.mansysback.entity.LocalAccount;
import com.cwj.mansysback.service.api.RankService;
import com.cwj.mansysback.service.impl.RankServiceImpl;
import com.cwj.mansysback.servlet.filter.LockFilter;
import com.cwj.mansysback.servlet.util.MyUtils;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class RankServletImpl extends HttpServlet {

    RankService rankSer = new RankServiceImpl();

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        LocalAccount loAcc = LockFilter.localAccount;

        MyUtils.writeResponse(resp,rankSer);



    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.doPost(req, resp);
    }
}
